package com.pingan.setting.money24url.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import com.pingan.setting.money24url.entity.StatProjChannelBean;
import com.pingan.setting.money24url.entity.StatProjDefineBean;
import com.pingan.setting.money24url.entity.StatProjPageBean;

@SuppressWarnings("unchecked")
@Repository
public class StatProjDefineDao {

	@Resource
	private SqlMapClientTemplate reportsysSetttingReadSqlMapClientTemplate;

	public List<StatProjDefineBean> getStatableProjects() {
		return reportsysSetttingReadSqlMapClientTemplate
				.queryForList("statprojdefine.getStatableProjects");
	}

	public List<StatProjPageBean> getPageBeans(int projId) {
		return reportsysSetttingReadSqlMapClientTemplate.queryForList(
				"statprojpage.getStatPageBeans", projId);
	}

	public List<StatProjChannelBean> getStatChanels(int projId) {
		return reportsysSetttingReadSqlMapClientTemplate.queryForList(
				"statprojchannel.getStatChannels", projId);
	}

}
